package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CHARGE database table.
 * 
 */
@Entity
@NamedQuery(name="Charge.findAll", query="SELECT c FROM Charge c")
public class Charge implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CHARGE_ID")
	private String chargeId;

	@Column(name="NOT_PAY")
	private BigDecimal notPay;

	@Column(name="REAL_PAY")
	private BigDecimal realPay;

	@Column(name="SHOULD_PAY")
	private BigDecimal shouldPay;

	private String source;

	@Column(name="SOURCE_ID")
	private BigDecimal sourceId;

	@Temporal(TemporalType.DATE)
	@Column(name="\"TIME\"")
	private Date time;

	private BigDecimal total;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public Charge() {
	}

	public String getChargeId() {
		return this.chargeId;
	}

	public void setChargeId(String chargeId) {
		this.chargeId = chargeId;
	}

	public BigDecimal getNotPay() {
		return this.notPay;
	}

	public void setNotPay(BigDecimal notPay) {
		this.notPay = notPay;
	}

	public BigDecimal getRealPay() {
		return this.realPay;
	}

	public void setRealPay(BigDecimal realPay) {
		this.realPay = realPay;
	}

	public BigDecimal getShouldPay() {
		return this.shouldPay;
	}

	public void setShouldPay(BigDecimal shouldPay) {
		this.shouldPay = shouldPay;
	}

	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public BigDecimal getSourceId() {
		return this.sourceId;
	}

	public void setSourceId(BigDecimal sourceId) {
		this.sourceId = sourceId;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public BigDecimal getTotal() {
		return this.total;
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}